import request from "@/utils/request";
export const category=()=>request.get(`/category`)
export const addApi=(data)=>request.post('/category/add',data)
export const queryByIdApi=(id)=>request.get(`/category/${id}`)
export const updateApi=(data)=>request.put('/category',data)
export const deleteApi=(id)=>request.delete(`/category?id=${id}`)